<!--
  项目查询-项目信息卡片一
  props：
    title string 标题
    number string 项目编号
    date string 日期
    customer string 客户名称
-->
<template>
  <div class="item-query">
    <f7-card class="item-query-card">
      <f7-card-content class="item-query-content">
        <f7-list media-list>
          <f7-list-item :title="title">
            <img slot="media" src="static/img/list/icon-list-xiangmu.png" alt="icon-list-xiangmu" width="32">
            <div slot="subtitle" class="project-info">
              <div class="first">
                <f7-icon f7="list_bullet" size="13px"></f7-icon>
                <span>{{number}}</span>
              </div>
              <div class="two">
                <f7-icon f7="timer" size="13px"></f7-icon>
                <span>{{date}}</span>
              </div>
            </div>
            <div slot="text" class="customer">
              <div class="first">
                <img src="static/img/list/icon-list-daxue.png" alt="icon-list-daxue" width="13" class="icon" />
                <span>{{customer}}</span>
              </div>
              <div class="two">
                <f7-icon f7="rectangle_grid_2x2" size="13px"></f7-icon>
                <span>招标文件</span>
              </div>
            </div>
          </f7-list-item>
        </f7-list>
      </f7-card-content>
    </f7-card>
  </div>
</template>

<script>
export default {
  name: "qm-item-query-card",
  props: {
    title: {
      type: String,
      default: "广州大学大学城校区绿篱建设项目"
    },
    number: {
      type: String,
      default: "JG2011-11509"
    },
    date: {
      type: String,
      default: "2021/09/30"
    },
    customer: {
      type: String,
      default: "广州大学"
    }
  }
}
</script>

<style lang="less" scoped>
.item-query {
  margin-bottom: calc(20px * var(--ratio));
  &:last-child {
    margin-bottom: 0;
  }

  .item-query-card {
    margin: 0;
    padding: calc(25px * var(--ratio)) calc(32px * var(--ratio)) calc(30px * var(--ratio));
    background: #FFFFFF;
    box-shadow: 0 calc(6px * var(--ratio)) calc(14px * var(--ratio)) 0 rgba(0, 0, 0, 0.05);
    border-radius: calc(16px * var(--ratio));

    .item-query-content {
      padding: 0;

      ::v-deep .list {
        margin: 0;
      }
      ::v-deep .item-content{
        padding: 0;

        .item-inner,.item-media {
          padding: 0;
        }

        .item-media {
          min-width: auto;
        }
        .item-inner {
          margin-left: calc(20px * var(--ratio));
        }

        .item-title {
          margin-bottom: calc(24px * var(--ratio));
          font-size: var(--font-size-subtitle);
          color: #242424;
          font-weight: 500;
        }
      }

      .project-info {
        margin-bottom: calc(20px * var(--ratio));
      }

      .customer,.project-info {
        display: flex;
        align-items: center;
        font-size: var(--font-size-subcontent);
        color: #61677A;
        line-height: calc(40px * var(--ratio));

        .first,.two {
          display: flex;
          align-items: center;

          .icon {
            margin-right: calc(10px * var(--ratio));
          }
        }
        .first {
          flex: 0 0 55%;
        }
      }
    }
  }
}
</style>
